package com.sky.mapper;


import com.sky.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    User getUser(String openid);

    @Options(useGeneratedKeys = true ,keyProperty = "id")
    @Insert("insert into user (openid,create_time)values (#{openid},#{createTime})")
    void addUser(User newUser);
}
